/**
 * Created by hms on 2020-08-22.
 */
import { ROAST_CONFIG } from '../config.js';

export default{
    getCommentList:function(data){
        return axios.get(ROAST_CONFIG.API_URL+'/commentlist',{ params : data});
    },
    editComment:function(data){
        return axios.post(ROAST_CONFIG.API_URL+'/editcomment',qs.stringify(data),{
            headers: {'Content-Type': 'application/x-www-form-urlencoded'}
        });
    },
    getCommentInfo:function(data){
        return axios.get(ROAST_CONFIG.API_URL+'/commentinfo',{
            params:data
        });
    },
    delComment:function(data){
        return axios.get(ROAST_CONFIG.API_URL+'/delcomment',{
            params:data
        });
    },
    getAllCommentList:function(data){
        return axios.get(ROAST_CONFIG.API_URL+'/allcommentlist',{ params:data });
    }
}
